import ajax from '@/api/apiConfig.js'

/* 获取维保报告数据 */
export const getMaintenanceReportData = (data) => {
  return ajax.get('maintenanceReport/getMaintenanceReportData', data)
}

/* 保存维保报告数据 */
export const save = (data) => {
  return ajax.post('maintenanceReport/save', data)
}

/* 提交维保报告数据 */
export const submit = (data) => {
  return ajax.post('maintenanceReport/submit', data)
}

/* 维保报告更新图片 */
export const changeWorkPic = (data) => {
  return ajax.get('maintenanceReport/changeWorkPic', data)
}

/* 获取维保报告列表 */
export const getReportList = (data) => {
  return ajax.get('maintenanceReport/getReportList', data)
}

/* 获取维保报告统计情况 */
export const state = (data) => {
  return ajax.get('maintenanceReport/state', data)
}

/* 报表列表 */
export const getFireReportList = (data) => {
  return ajax.get('maintenanceReport/getFireReportList', data)
}

/* 报表数量统计 */
export const getFireReportCount = (data) => {
  return ajax.get('maintenanceReport/getFireReportCount', data)
}

/* 维保报告图片 */
export const getWorkPicList = (data) => {
  return ajax.get('maintenanceReport/getWorkPicList', data)
}

/* 生成维保报告 */
export const createReport = (data) => {
  return ajax.get('maintenanceReport/createReport', data)
}
